program Tangent2;

{$APPTYPE CONSOLE}

uses
  SysUtils;

var
  x0, y0, x1, y1, x2, y2, R1, R2, dx, dy: Integer;
  a1, b1, c1, a2, b2, c2, a3, b3, c3, a4, b4, c4, D1, D2: Real;

begin
  readln (x1, y1, x2, y2, R1, R2);
  dx:=x1-x2;
  dy:=y1-y2;
  D1:=Sqrt(dx*dx+dy*dy-(R2-R1)*(R2-R1));
  a1:=(-(R2-R1)*dx-dy*D1)/(dx*dx+dy*dy);
  a2:=(-(R2-R1)*dx+dy*D1)/(dx*dx+dy*dy);
  b1:=(-(R2-R1)*dy+dx*D1)/(dx*dx+dy*dy);
  b2:=(-(R2-R1)*dy-dx*D1)/(dx*dx+dy*dy);
  c1:=-a1*x1-b1*y1+R1;
  c2:=-a2*x1-b2*y1-R1;
  Writeln (a1, ' ', b1, ' ', c1);
  Writeln (a2, ' ', b2, ' ', c2);
  D2:=Sqrt(dx*dx+dy*dy-(R2+R1)*(R2+R1));
  a3:=(-(R2+R1)*dx-dy*D2)/(dx*dx+dy*dy);
  a4:=(-(R2+R1)*dx+dy*D2)/(dx*dx+dy*dy);
  b3:=(-(R2+R1)*dy+dx*D2)/(dx*dx+dy*dy);
  b4:=(-(R2+R1)*dy-dx*D2)/(dx*dx+dy*dy);
  c3:=-a3*x1-b3*y1-R1;
  c4:=-a4*x1-b4*y1+R1;
  Writeln (a3, ' ', b3, ' ', c3);
  Writeln (a4, ' ', b4, ' ', c4);
  Readln;
end.
